package edu.com.wjt219971332.service;

import edu.com.wjt219971332.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface UserService {


    User queryById(Integer userid);

    Page<User> queryByPage(User user, PageRequest pageRequest);


    int insert(User user);


    int update(User user);


    boolean deleteById(Integer userid);

    User findByName(String account, String password);

    List<User> queryByusername(String username);
}
